package com.hardydou.data.mapper;

import com.hardydou.data.model.Film;
import com.hardydou.data.model.YdIcon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface YdIconMapper {
    int deleteByPrimaryKey(Long iconId);

    int insert(YdIcon record);

    int insertSelective(YdIcon record);

    YdIcon selectByPrimaryKey(Long iconId);

    int updateByPrimaryKeySelective(YdIcon record);

    int updateByPrimaryKeyWithBLOBs(YdIcon record);

    int updateByPrimaryKey(YdIcon record);

    List<YdIcon> list(Map params);

    void setTags(YdIcon icon);

    void cleanTagsByIcon(@Param("iconIds") long[] iconIds);

    void batchDel(@Param("iconIds") long[] iconIds);

}